package com.xuecheng.auth.service.service.impl;

import com.xuecheng.auth.model.po.XcMenu;
import com.xuecheng.auth.service.mapper.XcMenuMapper;
import com.xuecheng.auth.service.service.XcMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Mia
 */
@Slf4j
@Service
public class XcMenuServiceImpl extends ServiceImpl<XcMenuMapper, XcMenu> implements XcMenuService {

    @Autowired
    XcMenuMapper xcMenuMapper;

    @Override
    public List<XcMenu> selectPermissionByUserId(String id) {
        return xcMenuMapper.selectPermissionByUserId(id);
    }
}
